Learn how to index numeric variation to a string attribute.
algolia_after_create_product_object
event with a custom observer.
Observer/TransformAttribute.php
file, and add a new Observer class in it.
execute
block can be modified as needed. In this example, the clothing sizes are transformed into numeric values.
etc/events.xml
file: